{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_gjhdbm/template/public/ygcss.css">
<style type="text/css">
    input[type="radio"] + label::before {
        content: "\a0"; /*不换行空格*/
        display: inline-block;
        vertical-align: middle;
        font-size: 16px;
        width: 1em;
        height: 1em;
        margin-right: .4em;
        border-radius: 50%;
        border: 2px solid #ddd;
        text-indent: .15em;
        line-height: 1; 
    }
    input[type="radio"]:checked + label::before {
        background-color: #44ABF7;
        background-clip: content-box;
        padding: .1em;
        border: 2px solid #44ABF7;
    }
    input[type="radio"] {
        position: absolute;
        clip: rect(0, 0, 0, 0);
    }
</style>

<ul class="nav nav-tabs">    
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>   
    <li><a href="{php echo $this->createWebUrl('menu')}">菜单管理</a></li>
    <li class="active"><a href="{php echo $this->createWebUrl('addmenu')}">添加菜单</a></li>
</ul>
<div class="main ygmain">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <!--<input type="hidden" name="parentid" value="{$parent['id']}" />-->
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                内容编辑
            </div>
            <div class="panel-body">
               
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">菜单名称</label>
                    <div class="col-sm-9">
                        <input type="text" name="name" class="form-control" value="{$info['name']}" />
                    </div>
                </div>               
              
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">选择跳转路径</label>
                    <div class="col-sm-9">
                        <select name="src" class="col-md-9" id="type">
                            <option value="../piaoquan/piaoquan" {if $info['src']=='../logs/piaoquan/piaoquan'} selected {/if}>../piaoquan/piaoquan</option>
                            <option value="../myactive/myactive" {if $info['src']=='../myactive/myactive'} selected {/if}>../myactive/myactive</option>
                            <option value="../mycenter/check" {if $info['src']=='../mycenter/check'} selected {/if}>../mycenter/check</option>
                            <option value="../myactive/myguanzhu" {if $info['src']=='../myactive/myguanzhu'} selected {/if}>../myactive/myguanzhu</option>
                            <option value="../classification/classification" {if $info['src']=='../classification/classification'} selected {/if}>../classification/classification</option>
                          
                        </select>
                        <span class="help-block col-md-12">*我的票卷对应路径(../piaoquan/piaoquan)</span>
                        <span class="help-block col-md-12">*票卷审核对应路径(../mycenter/check)</span>
                        <span class="help-block col-md-12">*我的活动对应路径(../myactive/myactive)</span>
                        <span class="help-block col-md-12">*我的关注对应路径(../myactive/myguanzhu)</span>
                        <span class="help-block col-md-12">*活动分类对应路径(../classification/classification)</span>
                      
                    </div>

                </div>
               <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">菜单选中图标</label>
                    <div class="col-sm-9">
                        {php echo tpl_form_field_image('icon1', $info['icon1'])}
                        <span class="help-block">*建议宽高40*40</span>
                    </div>
                </div>
                  <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">菜单未选中图标</label>
                    <div class="col-sm-9">
                        {php echo tpl_form_field_image('icon2', $info['icon2'])}
                        <span class="help-block">*建议宽高40*40</span>
                    </div>
                </div>
              
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">排序</label>
                    <div class="col-sm-9">
                        <input type="text" name="sort" class="form-control" value="{$info['sort']}" />
                        <span class="help-block">*顺序由小到大，数字越小，排在前面。</span>
                    </div>
                </div>
            
            </div>

        </div>

        <div class="form-group">
            <input type="submit" name="submit" value="提交" class="btn col-lg-3" style="color: white;background-color: #44ABF7;"/>
            <input type="hidden" name="token" value="{$_W['token']}" />
            <input type="hidden" name="id" value="{$info['id']}" />
        </div>
    </form>
</div>
<script type="text/javascript">
    $(function(){
      
        $("#frame-18").show();
        $("#yframe-18").addClass("wyactive");
    })
</script>